package edu.fafu.dao;

import java.util.List;

import edu.fafu.entity.Question;
import edu.fafu.util.PageBean;

public interface IQuestionDao {

	Object queryQuestion(int id);

	void addQuestion(Question q);

	void updateQuestion(Question q);

	void deleteQuestion(int id);

	PageBean queryAllQuestion(PageBean pb);

	PageBean queryQuestion(String condition,PageBean pb);

	PageBean queryAnswer(Question q,PageBean pageBean);

	PageBean queryQuestionByUser(int userId, PageBean pageBean);
}
